<?php
class RSITE_Plugin_Layout extends Zend_Controller_Plugin_Abstract
{
    // Função que carrega layouts diferentes (dispatchLoopStartup padrão do zend confira documentação)
    public function dispatchLoopStartup (Zend_Controller_Request_Abstract $request)
    {
        //instanciando novo layout
        $layout = Zend_Layout::getMvcInstance();
        //setando o nome do layout
        $layout->setLayout("layout")->setLayoutPath(APPLICATION_PATH."/modules/".$request->getModuleName()."/views/layouts");
    }
}